package app.system;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;


public class MainGUI {
		
	    public static void main(String[] args) {
	        
	        SwingUtilities.invokeLater(new Runnable() {
	  	      public void run() {
	  	        try {
	  	          UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
	  	        }
	  	        catch (Exception exception) {
	  	          exception.printStackTrace();
	  	        }  	        
	  	        JFrame mainFrame = new SystemFrame();
		        mainFrame.validate();
		        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
			    Dimension frameSize = mainFrame.getSize();
			    mainFrame.setLocation( (screenSize.width - frameSize.width) / 2,
		                (screenSize.height - frameSize.height) / 2);
		        mainFrame.setVisible(true);
	  	      }
	  	    }
	  	 );

	    }

}
